package itdep.services;

import itdep.domain.NamedEntity;

/**
 * @author Ivan Khalopik
 * @version $Revision: 39 $ $Date: 2010-06-23 10:23:37 +0000 (Wed, 23 Jun 2010) $
 */
public class NamedEntityQuery<E extends NamedEntity, Q extends NamedEntityQuery<E, Q>>
		extends IisEntityQuery<E, Q>
		implements NamedEntityFilter<E> {

	private String name;

	public NamedEntityQuery(Class<E> entityClass) {
		super(entityClass);
	}

	@Override
	public String getName() {
		return name;
	}

	public Q setName(String name) {
		this.name = name;
		return query();
	}
}
